package Presentation;

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class userDetailsPanel extends JPanel{
	
	public userDetailsPanel(){
		super();
		setLayout(null);
		
		JLabel nameL = new MyLabel("Name : GilAmsalem",200,20,10,10);
		add(nameL);
		
		JLabel ageL = new MyLabel("Age : 25",200,20,10,40);		
		add(ageL);
		
		JButton loginB = new MyButton("Login",100,20,10,100);
		loginB.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				new LoginFrame();
			}
		});
		add(loginB);
		
		JButton userB = new MyButton("User Details",100,20,10,150);
		userB.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e){
				new userDetailsFrame("User Registration");
			}
		});
		add(userB);
		
		
		setLocation(10,50);
		setSize(new Dimension(380,550));
	}

}
